﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BTSDecompress
{
    public partial class AboutBox : Form
    {
        #region Constructors
        public AboutBox()
        {
            InitializeComponent();
        }
        #endregion
        #region Events
        private void okButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        private void AboutBox_Load(object sender, EventArgs e)
        {
            BTSDecompressLabel.Text = "BTSDecompress v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            linkLabel1.Links.Remove(linkLabel1.Links[0]);
            linkLabel1.Links.Add(0, linkLabel1.Text.Length, "http://connectedthoughts.wordpress.com/2008/04/02/3-ways-of-programatically-extracting-a-message-body-from-the-biztalk-tracking-database/");

            linkLabel2.Links.Remove(linkLabel2.Links[0]);
            linkLabel2.Links.Add(0, linkLabel2.Text.Length, "http://biztalkia.blogspot.com/2010/12/c-solution-to-decompress-biztalk.html");
        }
        #endregion

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start(linkLabel2.Links[0].LinkData.ToString());
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start(linkLabel1.Links[0].LinkData.ToString());
        }
    }
}
